home *** CD-ROM | disk | FTP | other *** search
/ Network Supervisor's Toolkit / Network Supervisor's Toolkit.iso / tools / lu62 / asinc.c < prev    next >
C/C++ Source or Header  |  1996-07-10  |  728b  |  39 lines

  1. /*
  2.       Call_APPL
  3.  
  4.  Function: call the interface module for transmit the appropriate
  5.            request.
  6.  
  7.  CopyRight 1995. Nicholas Poljakov all rights reserved.
  8.  
  9.  */
  10.  
  11. #include <stdio.h>
  12. #include <stdlib.h>
  13. #include <malloc.h>
  14. #include <dos.h>
  15.  
  16. char *cgetmem(int n, int s)
  17. {
  18.         return calloc(n, s);
  19. }
  20.  
  21. char *call_appl(void *p)
  22. {
  23.         char _near *t1;
  24.         char _near *t2;
  25.  
  26.         t1 = FP_OFF( p );
  27.         t2 = FP_SEG( p );
  28.         _asm {
  29.                 push ds
  30.                 mov  dx, word ptr t1[0]
  31.                 mov  ax, word ptr t2[0]
  32.                 mov  ds, ax
  33.                 xor  ax, ax
  34.                 int  65h
  35.                 pop  ds
  36.         }
  37.         return p;
  38. }
  39.